import React from 'react'

// 导入资源图片
import defaultImage from '../../assets/image/美女.jpg'
import reject from '../../assets/image/拒绝.jpg'

import {connect} from 'react-redux'

 class Girl extends React.Component{
    render(){
        const {status} = this.props
        return(
            <div>
                <img src={status ? reject : defaultImage} className='girlImg'></img>
            </div>
        )
    }
}

const mapStateToProps = (state)=>{
    return state
}

export default connect(mapStateToProps)(Girl)